package com.zsj.zsjkotlinmvvm.di

import com.zsj.zsjkotlinmvvm.data.remote.repository.RepositoryRemoteDataSource
import com.zsj.zsjkotlinmvvm.data.repository.GitHubRepository
import dagger.Module
import dagger.Provides
import javax.inject.Singleton

/**
 * Created by TanJiaJun on 2020/5/6.
 */
@Suppress("unused")
@Module
open class RepositoryModule {


    @Provides
    @Singleton
    fun provideGitHubRepository(remoteDataSource: RepositoryRemoteDataSource): GitHubRepository =
            GitHubRepository(remoteDataSource)

}